<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<form action="{{url('verify')}}" method="post">
    {{ csrf_field() }}
    <input type="text" name="captcha" class="form-control" style="width: 100px;height: 40px">
    <a onclick="javascript:re_captcha();" >
        <img src="{{ url('captcha/1') }}"  alt="验证码" title="刷新图片" width="100" height="40" id="c2c98f0de5a04167a9e427d883690ff6" border="0">
    </a>
    <input type="submit">
</form>

<script>
    function re_captcha() {
        $url = "{{ url('captcha') }}";
        $url = $url + "/" + Math.random();
        document.getElementById('c2c98f0de5a04167a9e427d883690ff6').src=$url;
    }
</script>

</body>
</html>